-- GENERATED SPELL FOR [Frostwolf Battleguard] --


function spell0_14285(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14285', 592, 1)
end

function spell1_14285(pUnit, Event) --@Improved Blocking,Self--
pUnit:FullCastSpellOnTarget(3248,pUnit)
pUnit:RegisterEvent('Sorts_14285', 6262, 1)
end

function spell2_14285(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14285', 15000, 1)
end

function spell3_14285(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(22591,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14285', 586, 1)
end

function Sorts_14285(pUnit, Event)
local choix_sorts_14285 = math.random(0, 3)
if choix_sorts_14285 == 0 then
pUnit:RegisterEvent('spell0_14285', 1, 1)
end
if choix_sorts_14285 == 1 then
pUnit:RegisterEvent('spell1_14285', 1, 1)
end
if choix_sorts_14285 == 2 then
pUnit:RegisterEvent('spell2_14285', 1, 1)
end
if choix_sorts_14285 == 3 then
pUnit:RegisterEvent('spell3_14285', 1, 1)
end
end

function mob14285_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14285', math.random(1500, 3000), 1)
end

function mob14285_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14285_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14285_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14285, 1, 'mob14285_Action')
RegisterUnitEvent(14285, 2, 'mob14285_Leave')
RegisterUnitEvent(14285, 3, 'mob14285_Kill')
RegisterUnitEvent(14285, 4, 'mob14285_Die')
